package com.tencent.welink.api.video;

import com.tencent.welink.api.OpenApiTokenChange;
import com.tencent.welink.api.base.WelinkOpenApi;
import com.tencent.welink.config.BussinessConfig;
import com.tencent.welink.util.CrontabUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Map;

/**
 * @Description: 获取视频设备扩展信息
 * @Author: limye
 * @CreateDate: 2020-6-8
 * @Version: V1.0
 */
public class GetVideoExtend extends WelinkOpenApi {

    private static final Logger log = LogManager.getLogger(GetVideoExtend.class);

    public GetVideoExtend(){
        super("/common/video/getExtend",true);
    }


    @Override
    public void displayResult(String result) {
    }


    public static void main(String[] args) {
        new BussinessConfig();
        CrontabUtil.addTaskInRate(new OpenApiTokenChange(), BussinessConfig.loginDurationMinutes,true);

        //实例化对象
        GetVideoExtend instance = new GetVideoExtend();

        //添加参数
        Map<String,Object> map = instance.getExtendsPara();
        map.put("din","200200000000000334");
        //map.put("sub_id","200200000000000334");

        //执行HTTP请求及展示结果
        instance.DoHttp();
        CrontabUtil.shutdown();

    }
}
